package com.wgo.bpot.domain.server.ejb;

import static javax.persistence.GenerationType.AUTO;
import static javax.persistence.TemporalType.TIMESTAMP;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Temporal;

import com.wgo.bpot.domain.common.impl.CommandHistoryImpl;


@Entity
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
public class CommandHistoryEjb extends CommandHistoryImpl {
	
	@Id
	@GeneratedValue(strategy=AUTO)
	public Long getIdentifier() {
		return super.getIdentifier();
	}
	
	@Temporal(TIMESTAMP)	
	public Date getDate() {
		return super.getDate();
	}
	
	/**
	 * Needed to trigger CGLib proxy (ie. if other CGLib-proxies is used as 
	 * parameter.)
	 * 
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	@Override
	public boolean equals(Object obj) {
		return super.equals(obj);
	}

	@Override
	public String getArgument() {
		return super.getArgument();
	}

	@Override
	public String getArgumentClass() {
		return super.getArgumentClass();
	}

	@Override
	public Long getArgumentDbId() {
		return super.getArgumentDbId();
	}

	@Override
	public String getConceptClass() {
		return super.getConceptClass();
	}

	@Override
	public Long getConceptDbId() {
		return super.getConceptDbId();
	}

	@Override
	public String getConceptName() {
		return super.getConceptName();
	}

	@Override
	public String getMethod() {
		// TODO Auto-generated method stub
		return super.getMethod();
	}

	@Override
	public String getUserName() {
		// TODO Auto-generated method stub
		return super.getUserName();
	}

	
}
